from transurlvania.defaults import *

urlpatterns = lang_prefixed_patterns('pillarsapp.views',

    url(r'^$', 'index', name="index"),
    url(r'^graph/(?P<format>json|xml)/$', 'graph', name="graph"),
    url(r'^node/(?P<format>json|xml|html)/$', 'node', name="node"),

    # Admin
    url(r'^admin/$', 'admin', name="admin"),
    url(r'^admin/deathcount/$', 'admin_death_count', name="admin_death_count"),
    url(r'^admin/pillar/new/$', 'admin_pillar_edit', name="admin_pillar_edit"),
    url(r'^admin/pillar/(?P<pillar_id>\d+)/$', 'admin_pillar', name="admin_pillar"),
    url(r'^admin/pillar/upload/$', 'admin_pillar_massupload', name="admin_pillar_massupload"),
    url(r'^admin/pillar/(?P<pillar_id>\d+)/edit/$', 'admin_pillar_edit', name="admin_pillar_edit"),

)
